'''
Created on 2017-6-19

@author: 24253
'''


from bs4 import BeautifulSoup as BS
from util.download import request

url="https://detail.tmall.com/item.htm?spm=a230r.1.14.21.MWSjF6&id=549039489591&ns=1&abbucket=3&sku_properties=10004:1162302684;5919063:6536025"
html=request.get(url,3)
soup=BS(html,"lxml")

topdiv=soup.find("div",attrs={"class","tb-summary tb-clear"})
print(topdiv)
xldiv=topdiv.find("li",attrs={"id":"J_Counter"}) 
xl=xldiv.find("a").text
print(xl)
            